package com.hfut.wxy.entity.mysql;

import com.hfut.wxy.common.parent.WxyBase;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Getter
@Setter
@DynamicUpdate
@DynamicInsert
@Entity
@Table(name = "wxyCapitalDetail")
public class WxyCapitalDetail extends WxyBase {

    @Column(columnDefinition = "float(7,2) comment '变动数额'")
    private Float changeNum;

    @Column(columnDefinition = "int(1) comment '变动类型 0接单收入 1发单支出 2充值 3提现 4赔偿'")
    private Integer type;

    @Column(columnDefinition = "bit(1)")
    private Boolean isAdd;

    @Column(columnDefinition = "integer")
    private Integer orderId;

}
